<?php 
switch ($data->type_id){
	case 5: $file = 'blocks/html'; break;  
	case 6: $file = 'blocks/code'; break;  
	case 7: $file = 'blocks/video'; break;  
	case 8: $file = 'blocks/img'; break;  
	default: $file = 'blocks/html'; break;  
}
	
$this->render($file, 
    array('data' => $data)
);
?>